package pe.com.bn.sach.domain;

/**
 * Bnchf08MotUniProcId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnchf08MotUniProcId implements java.io.Serializable {

	// Fields

	private Bnchf41UnidadProc bnchf41UnidadProc;
	private Bnchf03Motivo bnchf03Motivo;

	// Constructors

	/** default constructor */
	public Bnchf08MotUniProcId() {
		
		bnchf41UnidadProc=new Bnchf41UnidadProc();
	}

	/** full constructor */
	public Bnchf08MotUniProcId(Bnchf41UnidadProc bnchf41UnidadProc,
			Bnchf03Motivo bnchf03Motivo) {
		this.bnchf41UnidadProc = bnchf41UnidadProc;
		this.bnchf03Motivo = bnchf03Motivo;
	}

	// Property accessors

	public Bnchf41UnidadProc getBnchf41UnidadProc() {
		return this.bnchf41UnidadProc;
	}

	public void setBnchf41UnidadProc(Bnchf41UnidadProc bnchf41UnidadProc) {
		this.bnchf41UnidadProc = bnchf41UnidadProc;
	}

	public Bnchf03Motivo getBnchf03Motivo() {
		return this.bnchf03Motivo;
	}

	public void setBnchf03Motivo(Bnchf03Motivo bnchf03Motivo) {
		this.bnchf03Motivo = bnchf03Motivo;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnchf08MotUniProcId))
			return false;
		Bnchf08MotUniProcId castOther = (Bnchf08MotUniProcId) other;

		return ((this.getBnchf41UnidadProc() == castOther
				.getBnchf41UnidadProc()) || (this.getBnchf41UnidadProc() != null
				&& castOther.getBnchf41UnidadProc() != null && this
				.getBnchf41UnidadProc()
				.equals(castOther.getBnchf41UnidadProc())))
				&& ((this.getBnchf03Motivo() == castOther.getBnchf03Motivo()) || (this
						.getBnchf03Motivo() != null
						&& castOther.getBnchf03Motivo() != null && this
						.getBnchf03Motivo()
						.equals(castOther.getBnchf03Motivo())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBnchf41UnidadProc() == null ? 0 : this
						.getBnchf41UnidadProc().hashCode());
		result = 37
				* result
				+ (getBnchf03Motivo() == null ? 0 : this.getBnchf03Motivo()
						.hashCode());
		return result;
	}

}